package com.itheima;

import java.io.*;

public class Demo9 {
    public static void main(String[] args) throws IOException {
        BufferedInputStream bis = new BufferedInputStream(new FileInputStream("E:\\itcast\\mn.jpg”"));

        BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream("day_12work\\mn.jpg"));

        byte[] by = new byte[8192];
        int len;
        while ((len = bis.read(by)) != -1){
            bos.write(len);
        }

        bis.close();
        bos.close();
    }
}
